@use '@/assets/scss/mixins.scss';

.page {
  height: 100%;
  position: relative;
  overflow: hidden;
  background: url(/imgs/login-bg-default.jpg) no-repeat;
  background-size: cover;
}

.language {
  --el-text-color-regular: var(--z-text-color-white);
  --el-font-size-base: 14px;
  top: 24px;
  right: 24px;
  z-index: 3;
  cursor: pointer;
  position: absolute;
}

.panel {
  width: 70%;
  z-index: 3;
  @include mixins.center;
}

.left {
  opacity: 0.8;
  img {
    max-width: 100%;
  }
}

.right {
  padding: 50px 30px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: var(--el-box-shadow);
  border-radius: 10px;
  backdrop-filter: blur(5px);

  .bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--el-border-color);
    z-index: -1;
    opacity: 0.3;
    position: absolute;
    border-radius: 10px;
    background-color: var(--el-bg-color);
  }
  .title {
    position: relative;
    font-size: 1em;
    line-height: 1.8;
    background-image: -webkit-linear-gradient(bottom, #00ff84, #0703fd 50%, #ff00f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    &::after {
      top: 100%;
      left: 0;
      width: 45px;
      height: 2px;
      content: '';
      position: absolute;
      background: #028bff;
    }
  }
  .form {
    width: 260px;
    margin-top: 20px;
  }

  .btns {
    text-align: center;
    .btn {
      color: #fff;
      width: 100%;
      cursor: pointer;
      padding: 10px;
      display: inline-block;
      transition: all 0.15s;
      border-radius: 3px;
      text-transform: uppercase;
      background-color: #2f43f9;
      &:hover {
        opacity: 0.95;
        box-shadow: 0px 1px 10px 0 #0003;
      }
      &:active {
        opacity: 0.85;
        box-shadow: 0px 1px 5px 0 rgba(86, 84, 84, 0.2);
      }
    }
  }
}

:global {
  :local(.language) {
    .el-space {
      gap: 0 4px !important;
    }
  }
  :local(.form) {
    // 优化浏览器选择记住密码后自带样式的覆盖
    // 在使用浏览器保存的数据时 输入框的样式
    input:-webkit-autofill {
      // 字体颜色
      -webkit-text-fill-color: #fff !important;
      // 背景颜色
      background-color: transparent !important;
      // 背景图片
      background-image: none !important;
      //设置input输入框的背景颜色为透明色
      -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
      transition: background-color 50000s ease-in-out 0s;
    }
    .el-input__inner {
      border-color: transparent;
      border-radius: 0;

      &:focus {
        border-color: #409eff;
      }
    }
  }
}
